package com.bgs.service;

import com.bgs.common.R;
import com.bgs.pojo.BeforeUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bgs.pojo.vo.ZeroReturnGoods;

import java.util.List;

/**
 * <p>
 * 前台用户表 服务类
 * </p>
 *
 * @author Asia
 * @since 2021-09-14
 */
public interface BeforeUserService extends IService<BeforeUser> {
    /**
     * 查询所有用户
     *
     * @return
     */
   R fourQueryAll(BeforeUser beforeUser);

    R ThreeSend(String email);

    R zeroBeforeUserDelete2(Integer beforeUserId);

    R zeroFindBeforeUserByBeforeUserId(Integer beforeUserId);

    R ThreeZhuCe(String email, String code);

    R ThreeAddUser(BeforeUser beforeUser);

    R fourEditUser(BeforeUser beforeUser);


    String selectId(int i);

    List<BeforeUser> zeroBeforeUserIdToBeforeUser(Integer beforeUserId);

    boolean zeroReturnGoodsSubtractBalance(Integer beforeUserId, Double returnGoodsPayment);

    boolean zeroReturnGoodsAddBalance(ZeroReturnGoods zeroReturnGoods);

    R ThreeFindId(String beforeUserId);
  //查看用户余额
    BeforeUser TowBalance(Integer beforeUserId);
}
